﻿@using BonjourQuotation.UI.Models.SetupModel
@model SetupStatesGridRowViewModel
@{
    
}
@using (@Html.BeginForm("AddNewState", "Setup", FormMethod.Post, new { id = "AddNewStateForm" }))
{
    <div id="ErrorMessagesDivPopUp">
        <label for="Validation" id="errorMessageClient" class="errorMessage"></label>
        @if (Model.Message != null)
        {
            @Html.LabelForModel(Model.Message, new { @class = "errorMessage", id = "errorMessageServer" })
        }
    </div>
    @Html.HiddenFor(model => model.StID)
    <div class="pull-right" style="margin-bottom:15px;">
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-12">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.StateName)</span>
                    @Html.TextBoxFor(model => model.StateName, new { @class = "StateAddElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength20 Required" })
                </div>
            </div>
        </div>
        <div class="row form-row">
            <div class="ElementsPaddingRight30 col-lg-8">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.StateID)</span>
                    @Html.TextBoxFor(model => model.StateID, new { @class = "StateAddElementChange table_inputs_SmallPadding2 inpputgr form-control ElementsForValidation MaxLength2 Required" })
                </div>
            </div>
            <div class="ElementsPaddingRight30 col-lg-3">
                <div class="input-group">
                    <span class="input-group-addon inpputgrtext table_inputs_SmallPadding2 inpputgrback">@Html.LabelFor(model => model.IsActive)</span>
                    @Html.CheckBoxFor(model => model.IsActive, new { @class = "StateAddElementChange" })
                </div>
            </div>
        </div>
        <div class="SaveCancelDiv">
            <button class="btn14 btn50" type="button" onclick="$('#cboxClose').click()">Cancel</button>
            <button class="btn14 btn50" type="button" id="StateAddBtn">Save</button>
        </div>
    </div>
}





